﻿using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Records;

namespace BB.SoundCloudWebPlayer.Models
{
    public class SoundCloudTrackPartRecord : ContentPartRecord
    {
        public virtual string TrackName { get; set; }
        public virtual string TrackLocation { get; set; }
    }

    public class SoundCloudTrackPart : ContentPart<SoundCloudTrackPartRecord>
    {
        [Required]
        public string TrackName
        {
        get { return Retrieve(r => r.TrackName); }
		set { Store(r => r.TrackName, value); }
        }

        [Required]
        public string TrackLocation
        {
		  get { return Retrieve(r => r.TrackLocation); }
		  set { Store(r => r.TrackLocation, value); }
	  }
    }
}